home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19980901-19981211 / 000022_news@newsmaster….columbia.edu _Wed Sep 9 15:16:33 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id PAA04717
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 9 Sep 1998 15:16:33 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id PAA08034
  7.     for kermit.misc@watsun; Wed, 9 Sep 1998 15:16:32 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.os.vms,comp.protocols.kermit.misc
  11. Subject: Re: Problems compiling Kermit
  12. Date: 9 Sep 1998 19:16:26 GMT
  13. Organization: Columbia University
  14. Lines: 80
  15. Message-ID: <6t6k6a$g3v$1@apakabar.cc.columbia.edu>
  16. References: <01J1LNSCCQV6003UJK@acs.wooster.edu>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.os.vms:185794 comp.protocols.kermit.misc:9185
  19.  
  20. In article <01J1LNSCCQV6003UJK@acs.wooster.edu>,
  21. Lee Schultz  <SCHULTZ@ACS.WOOSTER.EDU> wrote:
  22. : Software:
  23. :   Kermit 6.0.192 
  24. :   AXP/VMS v7.1-1h1
  25. :   DecC v5.7
  26. :   Multinet v4.1a
  27. : Note that I am NOT a "C" programmer.
  28. : Your suggestions would be greatly appreciated.
  29. You are perfectly welcome to report problems with C-Kermit directly to
  30. kermit-support@columbia.edu.
  31.  
  32. : When compiling Kermit on the Alpha, I get the following error messages:
  33. : Starting [...]CKVKER.COM;3 on HOLMES at  8-SEP-1998 11:45:50.28
  34. : DECC compiler found
  35. : C compiler: DECC, options: /decc, command: CC
  36. : Operating System: OpenVMS(tm) Alpha
  37. : 'CC' 'CCOPT' KSP:ckcmai
  38. : #if _POSIX_C_SOURCE >= 2 || !defined _POSIX_C_SOURCE
  39. : ....................^
  40. : %CC-W-BADCONSTEXPR, Syntax error in constant expression.
  41. : at line number 127 in module UNISTD of text library
  42. : SYS$COMMON:[SYSLIB]DECC$RTLDEF.TLB;1
  43. This will be fixed in the next release.  The fix is in the file CKCDEB.H.
  44. Please find this:
  45.  
  46. #ifndef _POSIX_C_SOURCE
  47. #define _POSIX_C_SOURCE
  48. #endif /* _POSIX_C_SOURCE */
  49.  
  50. Change it to this:
  51.  
  52. #ifndef _POSIX_C_SOURCE
  53. #define _POSIX_C_SOURCE 1
  54. #endif /* _POSIX_C_SOURCE */
  55.  
  56. (Add a definition of "1").
  57.  
  58. : _PROTOTYP( void bzero, (char *, int) );
  59. : ^
  60. : %CC-E-PARMTYPLIST, Ill-formed parameter type list.
  61. : at line number 549 in file COLLEGE$WOOSTER:[KERMIT.CURRENT.SRC]CKCNET.H;3
  62. : _PROTOTYP( void bcopy, (char *, char *, int) );
  63. : ^
  64. : %CC-E-NOTCOMPAT, In this declaration, the type of "__MEMMOVE" is not
  65. : compatible with the type of a previous declaration of "__MEMMOVE" at line
  66. :  number 274 in file SYS$COMMON:[SYSLIB]DECC$RTLDEF.TLB;1.
  67. :
  68. Now these two are interesting.  bzero() and bcopy() are not very portable,
  69. and yet they are widely used in networking code.  If you look higher up in
  70. CKCNET.H, you'll see that we #define bzero and bcopy to be memset and
  71. memcopy (with appropriate argument rearrangement), but only if SVR4 (System
  72. V Release 4) or EXCELAN is defined, and then only if UNIX is also defined.
  73.  
  74. But none of those is defined in a VMS build.  So I have no idea how bcopy()
  75. could have been #define'd as memmove (as the diagnostic above demonstrates
  76. to be the case), unless it's happening somewhere else.
  77.  
  78. I'd like to know why this is happening, and fix it, but without access to
  79. your configuration, it's hard to say.  However, you might be able to mask
  80. the problem as follows:
  81.  
  82. #ifndef bzero
  83. _PROTOTYP( void bzero, (char *, int) );
  84. #endif /* bzero */
  85. #ifndef bcopy
  86. _PROTOTYP( void bcopy, (char *, char *, int) );
  87. #endif /* bcopy */
  88.  
  89. Please follow up directly to kermit-support@columbia.edu.
  90.  
  91. - Frank